package com.heatingcharge.entity.charge;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 年度应收
 * </p>
 *
 * @author devin.jiang
 * @since 2019-10-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ChargePayable implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键ID
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /**
     * 供暖季
     */
    private Integer heatYearId;

    /**
     * 房间ID
     */
    private Integer houseId;

    /**
     * 建筑面积
     */
    private BigDecimal buildArea;

    /**
     * 使用面积
     */
    private BigDecimal useArea;

    /**
     * 供热面积
     */
    private BigDecimal heatArea;

    /**
     * 收费面积
     */
    private BigDecimal chargeArea;

    /**
     * 层高
     */
    private BigDecimal floorHeight;

    /**
     * 层高系数
     */
    private BigDecimal floorFactor;

    /**
     * 房间类型
     */
    private Integer houseType;

    /**
     * 计费类型
     */
    private Integer chargeType;

    /**
     * 供暖状态 1 正常, 2 报停,  3 未供，4 强停，5 拆迁，6 退网，7 未入网
     */
    private Integer heatStatus;

    /**
     * 单价
     */
    private BigDecimal chargePrice;

    /**
     * 面积应缴
     */
    private BigDecimal areaPayable;

    /**
     * 优惠金额
     */
    private BigDecimal discount;

    /**
     * 附加费用
     */
    private BigDecimal additional;

    /**
     * 减免金额
     */
    private BigDecimal reduction;

    /**
     * 补贴金额
     */
    private BigDecimal subsidy;

    /**
     * 结转金额
     */
    private BigDecimal carryForward;

    /**
     * 滞纳金
     */
    private BigDecimal lateFee;

    /**
     * 实际应缴金额
     */
    private BigDecimal actualPayable;

    /**
     * 缴费状态 1：未缴费 2：已缴费 3：欠费
     */
    private Integer chargeState;

    /**
     * 删除标志 0：未删除 1：删除
     */
    private Integer delFlag;

    private String createdBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    private String updatedBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;


}
